﻿
using Red.Core;

namespace Red.Controls.ViewModels
{
    public class CheckedListBoxItemViewModel : ViewModel
    {
        #region Data
        
        private bool _isChecked;
        private string _description;

        #endregion Data

        #region Properties

        public bool IsChecked 
        {
            get { return _isChecked; }
            set
            {
                _isChecked = value;
                OnPropertyChanged();
            }
        }

        public string Description
        {
            get { return _description;  }
            set { _description = value;  }
        }

        #endregion Properties

        #region C-tor

        public CheckedListBoxItemViewModel()
        {}

        public CheckedListBoxItemViewModel( string description, bool initialValue = false )
        {
            Description = description;
            IsChecked = initialValue;
        }

        #endregion C-tor
    }
}
